package com.sumi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sumi.common.annotation.Excel;
import com.sumi.common.core.domain.BaseEntity;

/**
 * 地址区域对象 sys_region
 * 
 * @author fgf67@163.com
 * @date 2024-06-21
 */
public class SysRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    private Long id;

    /** 地址父级id */
    @Excel(name = "地址父级id")
    private Long parentId;

    /** 地址名称 */
    @Excel(name = "地址名称")
    private String regionName;

    /** 邮编 */
    @Excel(name = "邮编")
    private String regionPostalCode;

    /** 区号 */
    @Excel(name = "区号")
    private String regionAreaCode;

    /** 地址编码 */
    @Excel(name = "地址编码")
    private String regionCode;

    /** 是否可用（1启用 0停用） */
    @Excel(name = "是否可用", readConverterExp = "1=启用,0=停用")
    private Integer isAvailable;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createUid;

    /** 修改人id */
    @Excel(name = "修改人id")
    private Long updateUid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setRegionPostalCode(String regionPostalCode) 
    {
        this.regionPostalCode = regionPostalCode;
    }

    public String getRegionPostalCode() 
    {
        return regionPostalCode;
    }
    public void setRegionAreaCode(String regionAreaCode) 
    {
        this.regionAreaCode = regionAreaCode;
    }

    public String getRegionAreaCode() 
    {
        return regionAreaCode;
    }
    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }
    public void setIsAvailable(Integer isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public Integer getIsAvailable() 
    {
        return isAvailable;
    }
    public void setCreateUid(Long createUid) 
    {
        this.createUid = createUid;
    }

    public Long getCreateUid() 
    {
        return createUid;
    }
    public void setUpdateUid(Long updateUid) 
    {
        this.updateUid = updateUid;
    }

    public Long getUpdateUid() 
    {
        return updateUid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("regionName", getRegionName())
            .append("regionPostalCode", getRegionPostalCode())
            .append("regionAreaCode", getRegionAreaCode())
            .append("regionCode", getRegionCode())
            .append("isAvailable", getIsAvailable())
            .append("createTime", getCreateTime())
            .append("createUid", getCreateUid())
            .append("updateTime", getUpdateTime())
            .append("updateUid", getUpdateUid())
            .toString();
    }
}
